import JRequest from './request'
import { useStorage } from '@vueuse/core'
const request = new JRequest({
  baseURL: '/api',
  timeout: 1000 * 60 * 5,
  interceptors: {
    requestFulfilled: (config) => {
      const token = sessionStorage.getItem('token')
      config.headers.Authorization = token
      return config
    }
  },
  showLoading: true
})

export default request
